class VideoDetailUrlModel {
  int code;
  String message;
  Data data;

  VideoDetailUrlModel({this.code, this.message, this.data});

  VideoDetailUrlModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    data = json['data'] != null ? new Data.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data.toJson();
    }
    return data;
  }
}

class Data {
  String sourceUrl;
  List<Items> items;

  Data({this.sourceUrl, this.items});

  Data.fromJson(Map<String, dynamic> json) {
    sourceUrl = json['sourceUrl'];
    if (json['items'] != null) {
      items = new List<Items>();
      json['items'].forEach((v) {
        items.add(new Items.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['sourceUrl'] = this.sourceUrl;
    if (this.items != null) {
      data['items'] = this.items.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Items {
  String mediaName;
  String mediaUrl;
  String resolution;

  Items({this.mediaName, this.mediaUrl, this.resolution});

  Items.fromJson(Map<String, dynamic> json) {
    mediaName = json['mediaName'];
    mediaUrl = json['mediaUrl'];
    resolution = json['resolution'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['mediaName'] = this.mediaName;
    data['mediaUrl'] = this.mediaUrl;
    data['resolution'] = this.resolution;
    return data;
  }
}
